#define _CRT_SECURE_NO_WARNINGS 1
#include "Stack.h"

int main()
{
	ST st;

	STInit(&st);
	STPush(&st, 1);
	printf("%d\n", STTop(&st));
	STPush(&st, 2);
	printf("%d\n", STTop(&st));
	STPush(&st, 3);
	printf("%d\n", STTop(&st));
	STPush(&st, 4);
	printf("%d\n", STTop(&st));

	printf("\n");

	while (!STEmpty(&st))
	{
		printf("%d\n", STTop(&st));
		STPop(&st);
	}

	return 0;
}